//package com.watson.spring.all.security.service.old.qq.config;
//
//
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
////import org.springframework.social.autoconfigure.SocialAutoConfigurerAdapter;
//import org.springframework.social.connect.ConnectionFactory;
//import org.springframework.web.servlet.View;
//
///**
// * Created on 2018/1/8 0008.
// *
// * @author zlf
// * @email i@merryyou.cn
// * @since 1.0
// */
//@Configuration
//@Order(2)
//public class QQAuthConfig extends SocialAutoConfigurerAdapter {
//
//
//    @Override
//    protected ConnectionFactory<?> createConnectionFactory() {
////        return new QQConnectionFactory(SecurityConstants.DEFAULT_SOCIAL_QQ_PROVIDER_ID, SecurityConstants.DEFAULT_SOCIAL_QQ_APP_ID, SecurityConstants.DEFAULT_SOCIAL_QQ_APP_SECRET);
//        return null;
//    }
//
//    /**
//     * /connect/qq POST请求,绑定微信返回connect/weixinConnected视图
//     * /connect/qq DELETE请求,解绑返回connect/weixinConnect视图
//     *
//     * @return
//     */
//    @Bean({"connect/qqConnect", "connect/qqConnected"})
//    @ConditionalOnMissingBean(name = "qqConnectedView")
//    public View qqConnectedView() {
////        return new SocialConnectView();
//        return null;
//    }
//}
